import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { cityComponent } from '../city/city.component';
import { staffComponent } from '../staff/staff.component';
import { chartComponent } from '../chart/chart.component';
import { TableFormComponent } from '../table-form/table-form.component';
import { FormsModule } from '@angular/forms';
export const routes: Routes = [
  { path: '', redirectTo: 'orderOperation', pathMatch: 'full', },
  { path: 'orderOperation', component: cityComponent,data: { title: '城市详情', parent:'城市管理', module: 'orderOperation', power: "SHOW" } },
  { path: 'staffOperation',component: staffComponent ,data: { title: '员工详情', parent:'员工管理', module: 'staffOperation', power: "SHOW" }},
  { path: 'reportOperation',component: chartComponent ,data: { title: '图形报表', parent:'营收报表', module: 'reportOperation', power: "SHOW" }},
  { path: 'tableForm',component: TableFormComponent ,data: { title: '文字报表', parent:'营收报表', module: 'tableForm', power: "SHOW" }},
];
@NgModule({
  imports: [RouterModule.forRoot(routes),FormsModule],
  exports: [RouterModule]
})
export class RotutelistModule { }
export const ComponentList=[
  cityComponent,
  staffComponent,
  chartComponent,
  TableFormComponent
]